package edu.ncst.baseweb.dao.web;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "lab_opentopic")
public class LabOpenTopic extends RequestPage {
    //开放课题ID
    @TableId(value = "id")
    private Integer id;
    //开放课题名称
    @TableField(value = "name")
    private String name;
    //开放课题负责人
    @TableField(value = "creator")
    private String creator;
    //立项时间
    @TableField(value = "stime")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date stime;
    //课题状态
    @TableField(value = "state")
    private String state;
    //课题类型
    @TableField(value = "type")
    private String type;

    //开放课题ID
    public static final String COL_ID = "id";
    //开放课题名称
    public static final String COL_NAME = "name";
    //开放课题负责人
    public static final String COL_CREATOR = "creator";
    //立项时间
//    public static final String COL_STIME = "stime";
    //课题状态
    public static final String COL_STATE = "state";
    //课题类型
    public static final String COL_TYPE = "type";
}